#!/bin/bash
sudo ip tuntap add name ogstun mode tun &
sleep 0.1
sudo ip addr add 10.45.0.1/16 dev ogstun &
sleep 0.1
sudo ip addr add 10.46.0.1/16 dev ogstun &
sleep 0.1
sudo ip link set ogstun up &
sleep 0.1
sudo sysctl -w net.ipv4.ip_forward=1 &
sleep 0.1
sudo iptables -t nat -A POSTROUTING -s 10.45.0.0/16 ! -o ogstun -j MASQUERADE &
sleep 0.1
sudo iptables -t nat -A POSTROUTING -s 10.46.0.0/16 ! -o ogstun -j MASQUERADE &

